<template>
  <div>
    我是爷爷组件 -- {{ num }}
    <!-- <button @click="sendMessage">点我传递</button> -->
    <button @click="againSend">再次传递</button>
    <Father/>
  </div>
</template>

<script>
import Father from './Father.vue';
export default {
    name: "grand-father",
    components: {
        Father
    },
    created() {
      // console.log(this)
    },
    data() {
        return {
            num: 888
        }
    },
    methods: {
      // sendMessage() {
      //   this.$bus.$emit("abc", this.num)
      // }

      againSend() {
        this.$bus.$emit("aaaaa", 999)
      }
    }
}
</script>

<style>

</style>